package com.hulizuofang.wol.channel.client;

import com.google.inject.Inject;

public class ChannelManager {

	private final ChannelConnector channelConnector;

	@Inject
	public ChannelManager(ChannelConnector channelConnector, ChannelMessageHandler channelMessageHandler) {
		this.channelConnector = channelConnector;
		channelConnector.addChannelMessageHandler(channelMessageHandler);
	}
	
	public void addChannel(String token) {
		channelConnector.addChannel(token);
	}

}
